/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.sevenpriciples.srp.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.sevenpriciples.srp.srp.Worker;
import za.ac.cput.sevenpriciples.srp.srp.compliance.impl.CalculationsImpl;
import za.ac.cput.sevenpriciples.srp.srp.compliance.impl.EmployeeImp;
import za.ac.cput.sevenpriciples.srp.srp.violation.impl.EmployeeImpl;

/**
 *
 * @author 210227257
 */
@Configurable
public class AppConfig {
    @Bean(name = "employee")
    public EmployeeImpl employee(){
        return new EmployeeImpl();
    }
   
    @Bean(name = "calculate")
    public Worker calculate(){
        return new CalculationsImpl(this.newEmployee());
    }
    
    @Bean(name = "newEmployee")
    public EmployeeImp newEmployee(){
        return new EmployeeImp();
    }
}
